<template>
  <a-layout style="min-height: 100vh">
    <a-layout-sider v-model:collapsed="collapsed" collapsible>
      <div class="logo" />
      <a-menu v-model:selectedKeys="selectedKeys" theme="dark" mode="inline">
        <a-menu-item key="1">
          <pie-chart-outlined />
          <span><router-link to="/">首页</router-link></span>
        </a-menu-item>
        <a-menu-item key="2">
          <desktop-outlined />
          <span><router-link to="/jenkins">Jenkins</router-link></span>
        </a-menu-item>
        <a-menu-item key="3">
          <desktop-outlined />
          <span><router-link to="/port_forward">PortForward</router-link></span>
        </a-menu-item>
        <a-menu-item key="4">
          <desktop-outlined />
          <span><router-link to="/tools">Tools</router-link></span>
        </a-menu-item>
        <a-menu-item key="5">
          <desktop-outlined />
          <span><router-link to="/hutools">Hutools</router-link></span>
        </a-menu-item>
      </a-menu>
    </a-layout-sider>
    <a-layout>
      <a-layout-content>
        <router-view />
      </a-layout-content>
    </a-layout>
  </a-layout>
</template>
<script lang="ts" setup>
import {
  PieChartOutlined,
  DesktopOutlined,
} from '@ant-design/icons-vue'
import { ref } from 'vue';
const collapsed = ref<boolean>(false);
const selectedKeys = ref<string[]>(['1']);
</script>
<style scoped>
#components-layout-demo-side .logo {
  height: 32px;
  margin: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.site-layout .site-layout-background {
  background: #fff;
}

[data-theme='dark'] .site-layout .site-layout-background {
  background: #141414;
}
</style>

